<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:sysproduct:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:sysproduct:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:sysproduct:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.productName" placeholder="商品名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品分类</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.category" placeholder="商品分类"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否热卖：1是，2否</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.hot" placeholder="是否热卖：1是，2否"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否推荐：1是，2否</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.recommend" placeholder="是否推荐：1是，2否"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否新品：1是，2否</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.newProduct" placeholder="是否新品：1是，2否"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品排序</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.sort" placeholder="商品排序"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品销量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.sales" placeholder="商品销量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品pv</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.pv" placeholder="商品pv"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属商户id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.merchantId" placeholder="所属商户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否允许退货:1允许，2不允许</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.returnProduct" placeholder="是否允许退货:1允许，2不允许"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否为礼包：1是，2否</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.pack" placeholder="是否为礼包：1是，2否"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品库存</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.inStock" placeholder="商品库存"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品原价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.stock" placeholder="商品原价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品现价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.currentPrice" placeholder="商品现价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品业绩-作废字段</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.performance" placeholder="商品业绩-作废字段"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品主图</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.mainPicture" placeholder="商品主图"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品简介</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.introduction" placeholder="商品简介"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品重量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.kg" placeholder="商品重量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品详情</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.details" placeholder="商品详情"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品状态：1上架，2下架</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.status" placeholder="商品状态：1上架，2下架"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">运费设置：1固定运费，2运费模板</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.shipping" placeholder="运费设置：1固定运费，2运费模板"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">固定运费</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.cost" placeholder="固定运费"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">运费模板</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.template" placeholder="运费模板"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysProduct.creationTime" placeholder="创建时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/sysproduct.js?_${.now?long}"></script>
</body>
</html>